package net.csdra.DongPoShuZiTuShuGuan.controller.playInfo;

import net.csdra.DongPoShuZiTuShuGuan.domain.PlayInfo;
import net.csdra.DongPoShuZiTuShuGuan.service.PlayInfoManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by add on 2018/1/17.
 */
@RestController
@RequestMapping("/api/playInfoManager")
public class PlayInfoManagerController {
    @Autowired
    PlayInfoManagerService playInfoManagerService;

    @RequestMapping("/recordingPlayInfo")
    public PlayInfo recordingPlayInfo(@RequestBody PlayInfoManagerService.RecordingPlayInfo recordingPlayInfo) {
        return playInfoManagerService.recordingPlayInfo(recordingPlayInfo);
    }

    @RequestMapping("/setPlayInfo")
    public PlayInfo setPlayInfo(@RequestBody PlayInfoManagerService.SetPlayInfo setPlayInfo) {
        return playInfoManagerService.setPlayInfo(setPlayInfo);
    }
}
